/*
   Copyright (c) 2020, zoomdy
   MicroAmpereII is licensed under Mulan PSL v2.
   You can use this software according to the terms and conditions of the Mulan PSL v2.
   You may obtain a copy of Mulan PSL v2 at:
            http://license.coscl.org.cn/MulanPSL2
   THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
   EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
   MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
   See the Mulan PSL v2 for more details.
 */
#ifndef ZMD_HAL_SENSER_H__
#define ZMD_HAL_SENSER_H__

#include <stdint.h>
#include <stdbool.h>

typedef enum
{
    HAL_SENSER_CHNL_0R1 = 0,
    HAL_SENSER_CHNL_1R0 = 1,
    HAL_SENSER_CHNL_10R = 2,
    HAL_SENSER_CHNL_100R = 3,
    HAL_SENSER_CHNL_NULL = 4,
}hal_senser_chnl_t;

void hal_senser_set_chnl(hal_senser_chnl_t chnl);
hal_senser_chnl_t hal_senser_get_chnl(void);
uint16_t hal_senser_get(hal_senser_chnl_t chnl);
bool hal_senser_fifo_get(uint16_t* out_data);

#endif /* ZMD_HAL_SENSER_H__ */
